package com.code.user.service.impl;

import com.code.common.service.impl.BaseMySqlCrudServiceImpl;
import com.code.user.api.UserService;
import com.code.user.model.po.User;
import com.code.user.service.dao.UserMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;

import javax.annotation.Resource;

/**
 * 用户服务接口实现（用户基础服务层）
 *
 * @author tangyifei
 */
@Service(
        version = "${service.version}",
        application = "${dubbo.application.id}",
        protocol = "${dubbo.protocol.id}",
        registry = "${dubbo.registry.id}",
        interfaceClass = UserService.class,
        cluster = "${dubbo.provider.cluster}",
        loadbalance = "${dubbo.provider.loadbalance}"
)
@Slf4j
public class UserServiceImpl extends BaseMySqlCrudServiceImpl<User, Long> implements UserService {

    @Resource
    private UserMapper userMapper;

}
